iT邦幫忙

DAY 11
0

用Packer, Vagrant和Salt秒殺你的環境建置系列 第 11

Day 11 - Vagrant commands (編輯中)

  • 分享至 

  • xImage
  •  

今天介紹對VM 連線的相關指令

vagrant ssh

vagrant ssh-config

vagrant rdp

vagrant share

vagrant connect

=================

Command: vagrant init [box-name] [box-url]

This initializes the current directory to be a Vagrant environment by creating an initialVagrantfile if one doesn't already exist.

If a first argument is given, it will prepopulate the config.vm.box setting in the created Vagrantfile.

If a second argument is given, it will prepopulate the config.vm.box_url setting in the created Vagrantfile.

OPTIONS

  • --force - If specified, this command will overwite any existing Vagrantfile.
  • --minimal - If specified, a minimal Vagrantfile will be created. This Vagrantfile does not contain the instructional comments that the normal Vagrantfile contains.
  • --output FILE - This will output the Vagrantfile to the given file. If this is "-", the Vagrantfile will be sent to stdout.

上一篇
Day 10 - Vagrant commands
下一篇
Day 12 - Vagrant Commands, plugin
系列文
用Packer, Vagrant和Salt秒殺你的環境建置16
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言